package cn.faster.common.event;

import cn.faster.common.enums.EnumUserOperate;
import cn.faster.sys.entity.SysUser;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

/**
 * @author xiaoCoder
 * @version 1.0
 * @description: TODO 事件
 * @date 2021/8/7 12:52
 */
@Getter
@Setter
@ToString
public class UserActionEvent extends ApplicationEvent {

    // 用户信息
    private SysUser sysUser;

    // 是否操作成功
    private Boolean success;

    // 操作类型
    private EnumUserOperate operate;

    public UserActionEvent(Object source) {
        super(source);
    }
}
